﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ProjectX.Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="/WebCss/base.css" rel="stylesheet" type="text/css" />
    <link href="/WebCss/default.css" rel="Stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript" src="/ClientJs/jquery.js"></script>
    <script language="javascript" type="text/javascript" src="/ClientJs/jquery.loadthumb.js" ></script>
    <script language="javascript" type="text/javascript" src="/ClientJs/featureList.js" ></script>
    <script language="javascript" type="text/javascript" src="/ClientJs/Font/cufon-yui.js"></script>
    <script language="javascript" type="text/javascript" src="/ClientJs/Font/Microsoft_yahei.js"></script>
    <script language="javascript" type="text/javascript" src="/ClientJs/default.js"></script>
	
    <title>淘我想淘-只有想不到,没有买不到</title>
</head>
<body>
    <form id="mainForm" runat="server">
    <div id="headTop">
        <p>
            <asp:HyperLink ID="username" runat="server" NavigateUrl="/userCenter.html" ForeColor="Red"></asp:HyperLink>&nbsp&nbsp&nbsp欢迎来到淘我想淘网！
            <strong>
                <asp:HyperLink ID="loginlink" runat="server" NavigateUrl="/login.html" ForeColor="White">[请登录]</asp:HyperLink>&nbsp<font color="red">|</font>&nbsp<asp:HyperLink ID="reglink" runat="server" NavigateUrl="/regedit.html" ForeColor="White">[免费注册]</asp:HyperLink>
                <asp:LinkButton ID="logout" runat="server" ForeColor="White" 
                Visible="false" onclick="logout_Click">[退出]</asp:LinkButton>
            </strong>
            <span>
                <a href="/userCenter.html" target="_self" style="color:White">[用户中心]</a>&nbsp<font color="red">|</font>&nbsp[帮助中心]
            </span>
        </p>
    </div>
    <div id="newHeader" >
        <div>
            <a href="/" class="logo hidetxt"></a>
        </div>
        <ul id="newNav">
            <li><a id="mainpage" href="/" target="_parent" class="mainActive"></a></li>
            <li><a id="buy" href="/buy.html" target="_parent" class="buylink"></a></li>
            <li><a id="mybuy" href="/mybuy.html"  target="_parent" class="mybuylink"></a></li>
            <li><a id="allbuy" href="/allbuy.html"  target="_parent" class="allbuylink"></a></li>
        </ul>
    </div>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div id="wrapper-home">      
        <div class="clearfix" style="margin-bottom:20px;">
            <div class="content-float">
                <div id="feature_list">
                    <ul id="tabs">
                        <li>
					        <a href="javascript:;">
						        <h3 class="huandengh3">Services</h3>
						        <p>Lorem ipsum dolor sit amet consect</p>
					        </a>
				        </li>
				        <li>
					        <a href="javascript:;">
						        <h3 class="huandengh3">Programming</h3>
						        <p>Lorem ipsum dolor sit amet consect</p>
					        </a>
				        </li>
				        <li>
					        <a href="javascript:;">    
						        <h3 class="huandengh3">Applications</h3>
						        <p>Lorem ipsum dolor sit amet consect</p>
					        </a>
				        </li>
                        <li>
                            <a href="javascript:;">
						        <h3 class="huandengh3">Applications</h3>
						        <p>Lorem ipsum dolor sit amet consect</p>
					        </a>
                        </li>
                    </ul>
                    <ul id="output">
				        <li>
					        <img src="/images/sample3.jpg" alt="" />
					        <a href="#">查看详细</a>
				        </li>
				        <li>
					        <img src="/images/sample3.jpg" alt="" />
					        <a href="#">查看详细</a>
				        </li>
				        <li>
					        <img src="/images/sample3.jpg" alt="" />
					        <a href="#">查看详细</a>
				        </li>
                        <li>
					        <img src="/images/sample3.jpg" alt="" />
					        <a href="#">查看详细</a>
				        </li>
			        </ul>
                </div>
                <div id="catediv">
                    <div id="catetitle" class="catetitle cornerFixTop">
                        <div style="float:left; padding:5px;" ><img src="/Webimg/hotcate.png" alt="" /></div>
                        <div style="float:right;padding:5px 0px 0px"><img src="/Webimg/moreimg.png" alt="" style="margin-top:5px" /></div>
                        <div style="float:right; padding:5px"><a href="/Allcate.html" target="_blank" style="color:#ce0740">更多</a></div>
                        <div class="clearfix"></div>
                    </div>
               
                    <div id="catebody" class="cornerFixBottom catebody">
                         <asp:DataList ID="catelist" runat="server" 
                            ShowFooter="False" ShowHeader="False" Width="100%" Height="117px" CellSpacing="10" 
                            RepeatColumns="3" RepeatDirection="Horizontal">
                             <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
                            <ItemTemplate>
                                <a href='Search/<%# Eval("Cid") %>/<%# Eval("Cidlevel") %>.html' target="_blank"><%# Eval("Name") %>(<%# Eval("Count") %>)</a>
                            </ItemTemplate>
                        </asp:DataList>
                    </div>
                </div>
		    </div>
            <div id="content_sider">
                <div id="newsdiv" class="siderbarcss" style="height:150px;margin-bottom:15px;">
                    <div id="newstitle" class="catetitle cornerFixTop">
                        <div style="float:left; padding:5px;" ><img src="/Webimg/newstitle.png" alt="" /></div>
                        <div class="clearfix"></div>
                    </div>
                    <div id="newsbody" class="catebody cornerFixBottom" style="height:107px; text-align:left;padding:5px;font-size:15px;">
                        <asp:DataList ID="newslist" runat="server" Width="100%" RepeatLayout="Flow">
                            <ItemTemplate>
                                <a href="/news/<%# Eval("newsid") %>.html" target="_blank"><%# Eval("newstitle").ToString().Trim().Length > 30 ? Eval("newstitle").ToString().Trim().Substring(0, 25) + "..." : Eval("newstitle").ToString().Trim()%></a>
                            </ItemTemplate>
                        </asp:DataList>
                    </div>
                </div>
                <div id="newacction" class="siderbarcss">
                    <div id="actiontilte" class="catetitle cornerFixTop">
                        <div style="float:left; padding:5px;" ><img src="/Webimg/action.png" alt="" /></div>
                        <div class="clearfix"></div>
                    </div>
                    <div id="actionbody" class="catebody cornerFixBottom" style="text-align:left;padding:5px; height:285px;overflow:hidden;">
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                                <asp:Timer ID="actiontime" runat="server" Interval="300000" 
                                    ontick="actiontime_Tick">
                                </asp:Timer>
                                <asp:Repeater ID="actionlist" runat="server">
                                    <HeaderTemplate>
                                        <ul>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <li>
                                            <img src="/Webimg/comment.png" alt="" style="vertical-align:middle;" />
                                            <%# Eval("name").ToString().Trim() %>&nbsp<font color="red"><%# Eval("lasttime").ToString().Trim() + "前" %></font>&nbsp<%# Eval("action").ToString().Trim() + "购买"%><a href="<%# Eval("actionid") %>.html"><%# Eval("message").ToString()%></a></li>
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        </ul>
                                    </FooterTemplate>
                                </asp:Repeater>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                </div>
            </div>
        </div>
        <div id="content_home">
            <div class="catetitle cornerFixTop">
                <div style="float:left; padding:5px;" ><img src="/Webimg/newbuy.png" alt="" /></div>
                <div style="float:right;padding:5px 0px 0px"><img src="/Webimg/moreimg.png" alt="" style="margin-top:5px" /></div>
                <div style="float:right; padding:5px"><a href="/allbuy.html" style="color:#ce0740">更多</a></div>
                <div class="clearfix"></div>
            </div>
            <div class="cornerFixBottom catebody bodybg clearfix">
                <asp:Repeater ID="newRepeater" runat="server">
                    <ItemTemplate>
                        <div class="currentbuy">
                            <div class="new_title_div">
                                <h3><a href="<%# Eval("Id") %>.html"><%# Eval("title") %></a></h3>
                            </div>
                            <div id="imgparent">
                                <img id="<%# "newimg" + Eval("id") %>" class="imgcss" src='<%# Eval("imgsrc")==""?"images/webkey_1_009.png":Eval("imgsrc") %>' alt="" />
                            </div>
                            <div>
                                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                    <tbody>
                                        <tr>
                                            <td class="tod">
                                                <span class="new_span">期望价格：</span>
                                            </td>
                                            <td>
                                                <span class="fontcolor">￥<%# Eval("ExpectpricesMax")%></span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tod">
                                                <span class="new_span">宝贝：</span>
                                            </td>
                                            <td>
                                                <span style="font-size:12px;"><%# Eval("name") %></span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tod">
                                                <span class="new_span">发布人：</span>
                                            </td>
                                            <td>
                                                <span style="font-size:12px;color:#3396e4;"><%# Eval("ReleaseName")%></span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2" align="center">
                                                <strong style="color:#CE0740">淘友:<%# Eval("Respondcount")%></strong>
                                                |
                                                <strong style="color:#3396e4">卖家:<%# Eval("Sellercount")%></strong>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2" align="center">
                                                <a href="<%# Eval("Id") %>.html" class="fbutton">查看详细</a>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                              <%--  <ul>
                                    <li style="height:22px;">
                                        <span class="new_span">期望价格：</span>
                                        <span class="fontcolor" style="float:left;">￥<%# Eval("ExpectpricesMax")%></span><h3 style="float:right;color:#3396e4;"><%# Eval("ReleaseName")%></h3>
                                        <div class="clearfix"></div>
                                    </li>
                                    <li style="height:20px;">
                                        <span class="new_span">宝贝：</span>
                                        <span class="fontcolor" style="float:left;"><%# Eval("name") %></span>
                                        <span style="float:right;color:#3396e4;"><%# Eval("Starttime", "{0:yyyy-MM-dd HH:mm:ss}")%></span>
                                        <div class="clearfix"></div>
                                    </li>
                                    <li style="height:20px;">
                                        <span class="new_span">其他要求：</span>
                                        <span class="fontcolor"><%# Eval("Keyprop").ToString().Trim().Equals("") ? "" : Eval("Keyprop") + "，"%></span>
                                        <span class="fontcolor"><%# "送给" + Eval("Owner")%></span>
                                    </li>
                                </ul>--%>
                            </div>
                        </div>  
                    </ItemTemplate>
                </asp:Repeater>          
            </div>
        </div>
    </div>
    <iframe id="Ifooter" style="border: none;margin-top:30px;margin-bottom:30px;" width="998px" height="250px" src="/footer.aspx" scrolling="no"></iframe>
    </form>
</body>
</html>